package com.canieatit.gwt.shared;

import java.io.Serializable;

public class Product implements Serializable {
	
	private static final long serialVersionUID = 1L;

	Product() {}
	
	public Product(String barCode, String productName, String productCountry, String productSize, String imageUrl, String contributorEmail) {
		this.barCode = barCode;
		this.productName = productName;
		this.productCountry = productCountry;
		this.productSize = productSize;
		this.imageUrl = imageUrl;
		this.contributorEmail = contributorEmail;
	}

	public String barCode;
	public String productName;
	public String productCountry;
	public String productSize;
	public int halalCertification = 0;
	public boolean reviewedByAdmin;
	public String halalReference;
	public String imageUrl;
	public String contributorEmail;
//	public int vegatarianCertification = 0;
//	public int nutsFreeCertification = 0;
//	public int lactoseIntoleranceCertification = 0;
	
	
//	String vegeratarianReference;
//	String nutsFreeReference;
//	String lactoseFreeReference;
	
	
	
/*	public String toJson() {
		return new Gson().toJson(this);
	}*/
	
	@Override
	public String toString() {
		return "Barcode : " + this.barCode + "/n"
				+ "Product Name: "+ this.productName + "/n"
				+ "Product Country: "+ this.productCountry + "/n"
				+ "Product Size: "+ this.productSize + "/n"
				+ "Halal Certification: "+ this.halalCertification + "/n"
				+ "Image URL: "+ this.imageUrl;
	}
}
